package cn.iocoder.boot.springai001.tools.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分析结果请求 VO
 *
 * @author Agent System
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分析结果请求")
public class AnalyzeResultReqVO {

    @Schema(description = "查询结果（JSON字符串）", requiredMode = Schema.RequiredMode.REQUIRED,
            example = "[{\"product\":\"iPhone\",\"sales\":50000}]")
    @NotBlank(message = "查询结果不能为空")
    private String result;

    @Schema(description = "用户问题", example = "查询销售前10的商品")
    private String query;

    @Schema(description = "SQL语句", example = "SELECT product, sales FROM products ORDER BY sales DESC LIMIT 10")
    private String sql;
}

